/**
 * @Title: settle_router.js
 * @Description: 结算指标router
 * Copyright: Copyright (c) 2014 
 * Company:中国平安
 *
 * @Project HIMS-FWA
 * @author QIANDUO875
 * @date 2014年9月25日 下午2:01:05
 * @version V1.0
 */
;
(function(){
	'use strict';
	
	var app = angular.module('mhis.configs');
	app.config(['BaseURL','Config', function(baseUrl,Config){
		
		var states = Config.states;
		

        /*******
         * 
         * 综合查询 医务人员监控
         * 
         *******/
        states.push({
          	 	name:'doctorIntegrity',
          	 	url:'/doctorIntegrity/:doctorCode/:ruleParentId/:endDate/:startDate',
          	 	data:{
          	 		title:'医务人员监控',
               		tabRoot:'doctorIntegrity'
          	 	},
          	 	deepStateRedirect: true,
          	 	sticky: true,
          	 	views:{
                   'doctorIntegrity@':{
                   	templateUrl:baseUrl + '/views/hcpms/achievements/integrity/doctorIntegration.html',
                   	controller:'DoctorIntegrityCtrl'
                 }
               }
          });
        
        
        /*******
         * 
         * 审核列表
         * 
         *******/
		states.push({
			name:'integrityAudit',
	        url:'/integrityAudit',
	        data:{
	        	title:'医护人员诚信管理',
	        	tabRoot:'integrityAudit'
	        },
	        deepStateRedirect: true,
	        sticky: true,
	        views:{
	            'integrityAudit@':{
	            	template:'<div ui-view class="full-height full-width"></div>',
	            	controller:function() {
	            	}
	            }
	        }
		});
	    states.push({
	        name:'integrityAudit.auditList',
	        url:'/auditList',
	        data:{
	        	title:'医护人员诚信管理',
	        	tabRoot:'integrityAudit'
	        },
	        views:{
	            '@integrityAudit':{
	            	templateUrl:baseUrl+'/views/hcpms/achievements/integrity/insuredMedicalAudit_view.html',
	            	controller:'IntegrityMedicalAuditCtrl'
	            }
	        }
	    });
	    
		states.push({
			name:'integrityJump',
	        url:'/integrityJump',
	        data:{
	        	title:'医护人员诚信管理',
	        	tabRoot:'integrityJump'
	        },
	        deepStateRedirect: true,
	        sticky: true,
	        views:{
	            'integrityJump@':{
	            	template:'<div ui-view class="full-height full-width"></div>',
	            	controller:function() {
	            	}
	            }
	        }
		});
	    
	    states.push({
			name:'integrityJump.warningIntegrityQuery',
            url:'/warningIntegrityQuery/:doctorCode/:warnType/:startDate/:endDate',
            data:{
            	title:'预警查询',
            	tabRoot:'integrityJump'
            },
            views:{
                '@integrityJump':{
                	templateUrl:baseUrl+'views/hcpms/achievements/integrity/warningIntegrityQuery_view.html',
                    controller:'WarningIntegrityQuery'
                }
            }
		});
        
	    /**
         * 预警查看
         */
        
        states.push({
			name:'integrityJump.warningViewWarn',
            url:'/warningViewWarn/:warnNo/:actNo/:processNo',	            
            data:{
            	title:'预警查询',
            	tabRoot:'integrityJump'
            },
            views:{
                '@integrityJump':{
                	templateUrl:baseUrl+'views/hcpms/achievements/integrity/warningViewWarn_view.html',
                    controller:'WarningViewIntegrityCtrl'
                }
            }
		});	    
        
        /**
         * 案件查询
         */
        states.push({
        	name:'integrityJump.caseSearch',
        	url:'/caseJumpSearch/:doctorCode/:status/:startDate/:endDate',
        	data:{
        		title:'案件查询',
        		tabRoot:'integrityJump'
        	},
        	deepStateRedirect: true,
        	sticky: true,
        	views:{
        		'@integrityJump':{
        			templateUrl:baseUrl+'views/hcpms/achievements/integrity/caseSearch_list.html',
        			controller:'CaseJumpSearchListCtrl'
        		}
        	}
        });
        states.push({//案件查询-查看
        	name:'caseDetailJumpView',
        	url:'/caseDetailJumpView',
        	data:{
        		title:'案件查看',
        		tabRoot:'caseDetailJumpView'
        	},
            deepStateRedirect: true,
            sticky: true,
            views:{
                'caseDetailJumpView@':{
                    template:'<div class="full-width full-height" ui-view></div>',
                    controller:function($state){
                    }
                }
            }
        });
        states.push({
            name:'caseDetailJumpView.detail',
            url:'/detail/{caseCode}/{problemCode}',
            data:{
                title:'案件查看',
                tabRoot:'caseDetailJumpView'
            },
            views:{
                '@caseDetailJumpView':{
                    templateUrl:baseUrl+'views/hcpms/achievements/integrity/caseAduitDetail_view.html',
                    controller:'CaseJumpSearchDetailCtrl'
                }
            }
        });
	  //----------------------------------------------------------------------------
		/**
		 * 诚信管理  医护人员诚信管理审批--longyin
		 */
		states.push({
            name:'integrityApprove',
            url:'/integrityApprove',
            deepStateRedirect: true,
            sticky: true,
            data:{
                title:'医护人员诚信管理',
                tabRoot:'integrityApprove'
            },
            views:{
                'integrityApprove@':{
                  templateUrl:baseUrl +'views/hcpms/achievements/integrity/insuredMedicalApprove_view.html',
                    controller:'IntegrityMedicalApproveCtrl'
                }
            }
        });
		//----------------------------------------------------------------------------
	        
	        
	}]);
	
})();